package com.example.design.behavior.observer.one;

import java.util.Observable;
import java.util.Observer;

/**
 * \* @author: bear
 * \* Date: 2021-02-07-17:48
 * \* describe: 考生 观察者
 */
public class Student implements Observer {
	private String name;
	public Student(String name) {
		this.name = name;
	}

	@Override
	public void update(Observable o, Object arg) {
		Video video = (Video) o;
		System.out.println(name+"听到了第一题播放的内容");
	}
}
